{/include file="simpla/common/header.html"/}
{/include file="simpla/common/left.html"/}
<div id="main-content">
	<h2>欢迎您 {/$_adminname/}</h2>
	<p id="page-intro">查看商品的出库明细。</p>
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3>出库单明细</h3>
			<ul class="content-box-tabs">
				<li><a href="#tab1" class="default-tab">出库单管理</a></li>
				<li><a href="{/get_url rule="/stockout/stockout"/}">商品出库</a></li>
				<li><a href="{/get_url rule="/stockout/stockback"/}">商品退货</a></li>
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
				<div class="form">
					<form action="{/get_url rule='/stockout/index'/}" method="post" id="js-form">
						<fieldset class="clearfix">
							<table>
								<tr>
									<td class="input-label short-label">出库单编号：</td>
									<td><input type="text" name="stockout_sn" value="{/$index.stockout_sn/}" class="text-input" size="24" readonly/></td>
									<td class="input-label">出库时间：</td>
									<td><input type="text" name="stockout_opttime" value="{/$index.stockout_opttime/}" class="text-input" size="24" readonly/></td>
								</tr>
								<tr>
									<td class="input-label short-label">客户姓名：</td>
									<td ><input type="text" name="customer_name" value="{/$index.customer_name/}" class="text-input" size="24" readonly/></td>
									<td class="input-label">总金额：</td>
									<td><input type="text" name="stockout_totalprice" value="{/$index.stockout_totalprice/}" class="text-input" size="24" readonly /></td>
								</tr>
								<tr>
									<td class="input-label">订单备注：</td>
									<td colspan="3">
										<textarea class="text-input" name="stockout_note" readonly>{/$index.stockout_note/}</textarea>
									</td>
								</tr>
							</table>
						</fieldset>
					</form>
				</div>
				<hr />
				<table class="center">
					<thead>
						<tr>
							<th>商品编号</th>
							<th>商品名称(中)</th>
							<th>商品名称(泰)</th>
							<th>数量(件)</th>
							<th>装箱数量</th>
							<th>单价</th>
							<th>总价</th>
							<th>备注</th>
							<th>操作</th>
						</tr>
					</thead>
					<tfoot>
						<tr>
							<td colspan="9">{/$pagebar/}</td>
						</tr>
					</tfoot>
					<tbody>
						{/section name=i loop=$detail/}
						<tr>
							<td>{/$detail[i].goods_sn/}</td>
							<td>{/$detail[i].goods_name_chn/}</td>
							<td>{/$detail[i].goods_name_tha/}</td>
							<td>{/$detail[i].goods_pack_num/}</td>
							<td>{/$detail[i].goods_pack_size/}</td>
							<td>{/$detail[i].goods_unitprice/}</td>
							<td>{/$detail[i].goods_totalprice/}</td>
							<td>{/$detail[i].goods_note/}</td>
							<td></td><!--td>
								<a href="{/get_url rule='/stockout/index' data='ac=emodone&sid='|cat:$detail[i].stockout_detail_id/}" title="编辑"><img src="{/$root_dir/}/assets/simpla/images/icons/hammer_screwdriver.png" alt="编辑" /></a>
								<a onclick="return(confirm('确认要删除此商品?'))" href="{/get_url rule='/stockout/index' data='ac=edelone&sid='|cat:$detail[i].stockout_detail_id/}" title="删除"><img src="{/$root_dir/}/assets/simpla/images/icons/cross.png" alt="删除" /></a>
							</td-->
						</tr>
						{/sectionelse/}
						<tr>
							<td colspan="9" align="center">没有数据</td>
						</tr>
						{//section/}
					</tbody>
				</table>
				<p><center><a href="{/get_url rule='/stockout/stockout' data='ac=print&sid='|cat:$index.stockout_sn/}" target="_blank" title="打印">［打印出库单］</a>
			</div>
		</div>
	</div>
	{/include file="simpla/common/copy.html"/} </div>
{/include file="simpla/common/footer.html"/} 
